package moh.s2.s2Facade.impl;
import java.util.List;

import moh.s2.s2Facade.AsFacade;
import moh.s2.s2entity.AppSettingVO;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class AsFacadeImplTest {

	@Test
	public void testGetAppSettings() {
		
		System.out.println("void testGetAppSettings");
		
		ApplicationContext ctx = new ClassPathXmlApplicationContext("appsetting-facade.xml"); 
		AsFacade asfac = (AsFacade)ctx.getBean("asFacade");
		
		List<AppSettingVO> lst = asfac.getAppSettings();
		for(AppSettingVO v:lst) {
			System.out.println(v);
		}
	}

	@Test
	public void testGet() {
		ApplicationContext ctx = new ClassPathXmlApplicationContext("appsetting-facade.xml"); 
		AsFacade asfac = (AsFacade)ctx.getBean("asFacade");
		AppSettingVO v = asfac.get(1);
		System.out.println("Facade id=1  " + v);
	
	}
	
	
}
